/*
    Ship Type Data, stores Ship base Statistics, such as hardpoints and model, perhaps set up later
    so as to be a base hull, with modules added to a ship that modify other stats.
*/

#include "Dark.h"
#include "BJ.h"
#include "Ship Type.h"

ShipType::ShipType
(
    char  *iPName,              // name for the class of ship, such as Daedalus Class, ect...
    DarkImage *iPImage,         // Sprite id for the ship
    DarkImage *iPShieldImage,   //
    double iThrust,             //
    double iFriction,           // 
    double iRotationRate,       //
    double iEnergyGen,          //
    double iEnergyCap,          //
    double iHull,               //
    double iRadius,             // Radius for collision with other objects
    double iMass                //
)
{
    _name = string(iPName);
    _pImage = iPImage;
    _pShieldImage = iPShieldImage;
    _thrust = iThrust * Dark::PERIOD;
    _friction = pow(1 - iFriction, Dark::PERIOD);
    _rotationRate = iRotationRate * Dark::PERIOD;
    _energyGen = iEnergyGen * Dark::PERIOD;
    _energyCap = iEnergyCap;
    _hullCap = iHull;
    _radius = iRadius;
    _mass = iMass;
}

ShipType::~ShipType
(
    void
)
{

}